package com.qwz.learn.factory;

import com.qwz.learn.product.*;
/**
* @Description: 具体的工厂实现对象，实现创建具体的产品对象的操作
* @Package com.qwz.learn.factory.ConcreteFactory2
* @author Qiuwuzhi
* @date 2019/12/16 10:43
* @version V1.0
*/
public class ConcreteFactory2 implements AbstractFactory {
    @Override
    public AbstractProductA createProductA() {
        return new ProductA2();
    }

    @Override
    public AbstractProductB createProductB() {
        return new ProductB2();
    }
}
